$(document).on('click', '.layer-photoview img[layer-src]', function(e) {
    e.preventDefault();
    console.log('layer-src')
    var container = $(this).closest('.layer-photoview');
    layer.photos({
        photos: container,
        anim: 5,
    });
});